<template>
<div>
    <el-row class="tac">
        <el-col :span="12">
            <el-menu default-active="2" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :router="true">

               <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==46">
              <el-menu-item index="/IndexView">
                    <i class="el-icon-menu"></i>
                    <span slot99O99IUII8="title">{{ findmenu.title }}</span>
                </el-menu-item>
                 </span></span></span>

              <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==47">
                <el-menu-item index="/MemberCalendarView">
                    <i class="el-icon-date"></i>
                    <span slot="title">{{ findmenu.title }}</span>
                </el-menu-item>
                 </span></span></span>


              <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==48">
                <el-submenu index="1">
                    <template #title>
                        <i class="el-icon-location"></i>
                        <span>{{ findmenu.title }}</span>
                    </template>

                   <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==50">
                    <el-submenu index="1-4">
                        <template #title>{{ findmenu.title }}</template>

                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==54">
                        <el-menu-item index="/MemListView">{{ findmenu.title }}</el-menu-item>
                        </span></span></span>
                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==55">
                         <el-menu-item index="/MemberTaskStatus">{{ findmenu.title }}</el-menu-item>
                        </span></span></span>
                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==56">
                         <el-menu-item index="/MemberFeedback">{{ findmenu.title }}</el-menu-item>
                        </span></span></span>
                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==57">
                         <el-menu-item index="/MemberCompanyFeedback">{{ findmenu.title }}</el-menu-item>
                        </span></span></span>
                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==58">
                        <el-menu-item index="/MemberButton">{{ findmenu.title }}</el-menu-item>
                        </span></span></span>
                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==59">
                        <el-menu-item index="/MemberCompanyButton">{{ findmenu.title }}</el-menu-item>
                          </span></span></span>
                    </el-submenu>
                     </span></span></span>

                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==51">
                    <el-submenu index="1-5">
                        <template #title>{{ findmenu.title }}</template>


                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==60">
                        <el-menu-item index="/MemberPosition">{{ findmenu.title }}</el-menu-item>
                         </span></span></span>

                        <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==61">
                        <el-menu-item index="/DepartmentInformation">{{ findmenu.title }}</el-menu-item>
                           </span></span></span>
                    </el-submenu>
                        </span></span></span>
                </el-submenu>
                 </span></span></span>

              <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==49">
                <el-submenu index="2">
                    <template #title>
                        <i class="el-icon-setting"></i>
                        <span>设置</span>
                    </template>
                    <el-menu-item-group>

                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==52">
                        <el-menu-item index="ChangeInfoView">{{ findmenu.title }}</el-menu-item>
                       </span></span></span>

                      <span slot99O99IUII8="title"><span v-for="findmenu in findmenus"><span v-if="findmenu.id==53">
                        <el-menu-item index="1-2">{{ findmenu.title }}</el-menu-item>
                       </span></span></span>

                    </el-menu-item-group>
                </el-submenu>
                  </span></span></span>
            </el-menu>
        </el-col>
    </el-row>

</div>
</template>

<style>
.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 199px;
    min-height: 600px;
    line-height: 50%;
}

.wm {
    height: 40px;
}
</style>

<script>
import instance from "@/utlis/request";

export default {
    name: 'MemberMenu',
    data() {
        return {
            openeds: ['1'],
            isCollapse: true,
          findmenus:{},
        };
    },
  created:function (){
    this.initDate();
  },
  methods:{
    initDate:function (){
      instance.get("/Manage/UserMenus").then(res=>{
        this.findmenus=res.data.data
        console.log(res)
      })
    }
  }
}
</script>
